/*
	PlAr is Platform Arena: a 2D multiplayer shooting game
	Copyright (c) 2010, Antonio Ragagnin <spocchio@gmail.com>
    All rights reserved.

    This file is licensed under the New BSD License.
*/

package plar.core;

/**
 * This action is by default in each Element
 * it is only be forced (usually from other Actions)
 * for example it is self-called by the ElementBullet when a collision occurs.
 *
 * @author Antonio Ragagnin
 *
 */
public class ActionDestroy  extends Action {


	/**
	* This function is called by whatever element want to destroy the {@link Element}-owner of this action.
	*/
    public Object force(Object o) {
        me.level.delElement(me);
        return null;
    }

}
